org.eclipse.vtp.framework.spi
Interface ICommandProcessor

All Known Implementing Classes:
Execution.Context

public interface ICommandProcessor

A service provided by the process controller that accepts commands issued from components of the process.

Author:
Lonnie Pryor

Method Summary
 boolean enqueue(ICommand command)
          Attempts to enqueue the specified command for execution by the process controller.
 boolean process(ICommand command)
          Attempts to enqueue the specified command for execution by the process controller and then waits for all commands in the queue to be processed before returning.
 

Method Detail

enqueue

boolean enqueue(ICommand command)
Attempts to enqueue the specified command for execution by the process controller.

Parameters:
command - The command to enqueue.
Returns:
True if the command was accepted by this queue.

process

boolean process(ICommand command)
                throws java.lang.IllegalStateException
Attempts to enqueue the specified command for execution by the process controller and then waits for all commands in the queue to be processed before returning.

Parameters:
command - The command to enqueue.
Returns:
True if the command was accepted and processed by this queue.
Throws:
java.lang.IllegalStateException - If the process controller is not in the blocking state.